package com.woniuxy.gateway.config;

import com.woniuxy.common.jwt.util.JwtTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtConfig {

    @Value("${auth.security.path}")
    private String path;

    @Value("${auth.security.key-store-security}")
    private String keyStoreSecurity;

    @Value("${auth.security.key-security}")
    private String keySecurity;

    @Bean
    public JwtTemplate jwtTemplate() {
        return new JwtTemplate(path, keyStoreSecurity, keySecurity);
    }


}
